﻿<%@ Page Language="C#"  MasterPageFile="~/Template/Master.master" AutoEventWireup="true" CodeFile="ViewMessage.aspx.cs" Inherits="GUI_ViewMessage" Title="View Message" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BackColor="#DEBA84" 
        BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        CellSpacing="2" DataKeyNames="MessageID">
      
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <Columns>
            <asp:BoundField DataField="MessageID" HeaderText="MessageID" 
                SortExpression="MessageID" />
            <asp:BoundField DataField="username" HeaderText="Username" />
            <asp:BoundField DataField="detail" HeaderText="Content" />
            <asp:BoundField DataField="M_timestamp" HeaderText="Time" />
            <asp:CheckBoxField DataField="M_Status" HeaderText="Status" 
                InsertVisible="False" />
            <asp:TemplateField>
            <ItemTemplate>
                  <asp:HyperLink ID="HyperLink1" runat="server" Text="Read" Target="_blank"  NavigateUrl='<%#"MessageDetail.aspx?id="+ Eval("MessageID")%>'></asp:HyperLink>
            </ItemTemplate>
          
            </asp:TemplateField>

        </Columns>
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <EmptyDataTemplate>
            Username
        </EmptyDataTemplate>
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
</asp:Content>